Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > AlternativeElevator

Main.AlternativeElevator History

Show minor edits - Show changes to markup

January 27, 2005, at 11:33 PM by bjarne
Changed lines 23-24 from:

to:

Example map

Get the example map here.

January 27, 2005, at 11:31 PM by bjarne
Added lines 1-27:

An alternative to complex elevators, using the func_door

Alternative elevator

Function doors can also be used to make a simple elevator and there is no scripting required! As you may know, a func_door can open upwards--if the angle is set to -1. So, what would happen if you stand on top of the door and hit the use key? That's right, you will move up with the door. So, let's make one!

First make a flat brush to stand on. If you want to get fancy, create a hole in the floor for it. Texture the brush and turn it into a func_door--we don't need an origin brush. Now we have to set the properties of the door.

KeyValueExplanation
angle-1Makes it move up.
lip-248How far it moves, in negitive units, above its normal stopping place.
time3.0How long it takes to move up or down in seconds.
sound_open_startlighthouse_runThe ubersound alias to play when it starts up.
sound_open_endsnd_step_paperThe ubersound alias to play when it stops at the top.
sound_close_startlighthouse_runThe ubersound alias to play when it starts down.
sound_close_endsnd_step_paperThe ubersound alias to play when it stops at the bottom.

You may need to adjust the lip to make it stop where you want it to. The "snd_step_paper" alias name is a null sound (no sound) used to stop the normal sounds the door makes. You can use any sounds you wish, but if you don't change them, your elevator will sound like a door.

That is all, you're done! Players only need the hit the use key to go up, and it will return to the bottom if no one is on it. Of course, it is still a door and you can use any of the normal door settings--like wait, toggle, targeted, etc... . Here is a picture of a manhole elevator that is really a func_door. Click on it to download the "door2" tutorial map.

By tltrude

Good luck!

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on January 27, 2005, at 11:33 PM